
package gwtcomettest.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import gwtcomettest.atm.client.Broadcast;
import gwtcomettest.atm.client.Event;
import java.io.IOException;
import java.io.Serializable;

/**
 *
 * @author p.havelaar
 */
public class BroadcastServlet extends RemoteServiceServlet
        implements Broadcast {

    @Override
    public void broadcastEvent(Event event) throws IOException {
        broadcast(event);
    }

    protected void broadcast(Serializable o) throws IOException {
        AtmosphereServlet.broadcast(o);
    }
}
